package com.sailfish.config.apollo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户业务相关接口
 *
 * @author xiaxinyu
 */
@RestController
@RequestMapping("/v1/")
public class TestController {
    @Value("${test.key:-}")
    private String testKey;

    @GetMapping("/test/key")
    public String getTestKey() {
        return testKey;
    }
}
